
public class Cat {
    public static void main(String[] arges){
        Cat cat=new Cat();
        cat.setAnimalName("猫");
        cat.run();
    }
    public class Dog{
        Dog dog=new dog();
        dog.setAnimalName("狗");
        dog.run();
    }
}
class Animal{
    String name;

    public Animal(){}
    public Animal(String name){
        this.name=name;
    }
}

